Drop gtk_events_pending
authorMatthias Clasen <mclasen@redhat.com>
Mon, 10 Feb 2020 00:34:02 +0000 (19:34 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 10 Feb 2020 04:11:49 +0000 (23:11 -0500)
This was just a thin wrapper around gtk_main_context_pending,
which should be used directly instead.

docs/reference/gtk/gtk4-sections.txt
gtk/gtkmain.c
gtk/gtkmain.h

index 3ef6eeae03c1f1de098dcd1dd5dd318008abf5ca..8b503f0337cae0654a32de104414438c4358317a 100644 (file)
@@ -4418,7 +4418,6 @@ gtk_get_default_language
 gtk_get_locale_direction
 gtk_init
 gtk_init_check
-gtk_events_pending
 gtk_main
 gtk_main_level
 gtk_main_quit
index 36ec67891d4ed829e13ea12bf80143ebb1d5ca05..5e35e9e6af08979f6a46af0df90dad19ac9baf60 100644 (file)
@@ -1152,33 +1152,6 @@ gtk_main_quit (void)
   g_main_loop_quit (main_loops->data);
 }
 
-/**
- * gtk_events_pending:
- *
- * Checks if any events are pending.
- *
- * This can be used to update the UI and invoke timeouts etc.
- * while doing some time intensive computation.
- *
- * ## Updating the UI during a long computation
- *
- * |[<!-- language="C" -->
- *  // computation going on...
- *
- *  while (gtk_events_pending ())
- *    gtk_main_iteration ();
- *
- *  // ...computation continued
- * ]|
- *
- * Returns: %TRUE if any events are pending, %FALSE otherwise
- */
-gboolean
-gtk_events_pending (void)
-{
-  return g_main_context_pending (NULL);
-}
-
 /**
  * gtk_main_iteration:
  *
index fc9f08b6f9f879c2008be1b247d61fbef616bfd1..e2c349a9baf27fcbb75f29181ff3c66232450975 100644 (file)
@@ -109,8 +109,6 @@ GDK_AVAILABLE_IN_ALL
 PangoLanguage *gtk_get_default_language (void);
 GDK_AVAILABLE_IN_ALL
 GtkTextDirection gtk_get_locale_direction (void);
-GDK_AVAILABLE_IN_ALL
-gboolean       gtk_events_pending       (void);
 
 GDK_AVAILABLE_IN_ALL
 void       gtk_main                (void);